/** 用户模块 */
import request from '@/utils/request'

// 获取用户信息
export function getUserInfo(params, config) {
	return request({
	  url: '/Mobile/MyCenter/GetMyCusinfo',
	  method: 'get',
	  params,
		config
	})
}

// 获取我的优惠券
export function getMyCoupon(params, config) {
	return request({
	  url: '/Mobile/MyCenter/GetMyCoupon',
	  method: 'get',
	  params,
		config
	})
}

// 获取全部优惠券
export function getALLCoupon(params, config) {
	return request({
	  url: '/Mobile/MyCenter/GetALLCoupon',
	  method: 'get',
	  params,
		config
	})
}

// 添加课程收藏
export function addfavorites(params, config) {
	return request({
	  url: '/Mobile/MyCenter/addfavorites',
	  method: 'get',
	  params,
		config
	})
}

// 取消课程收藏
export function cancelfavorites(params, config) {
	return request({
	  url: '/Mobile/MyCenter/cancelfavorites',
	  method: 'get',
	  params,
		config
	})
}

// 获取我的收藏
export function getMyFavorites(params, config) {
	return request({
	  url: '/Mobile/MyCenter/GetMyFavorites',
	  method: 'get',
	  params,
		config
	})
}

// 用户积分账号列表
export function getBdCustomPoint(params, config) {
	return request({
	  url: '/Mobile/MyCenter/GetBdCustomPoint',
	  method: 'get',
	  params,
		config
	})
}

// 查询报名订单列表
export function queryBtOrder(params, config) {
	return request({
	  url: '/Mobile/MSubOrder/QueryBtOrder',
	  method: 'get',
	  params,
		config
	})
}

// 查询兑换记录列表
export function queryBtPointMallOrder(params, config) {
	return request({
	  url: '/Mobile/MSubOrder/QueryBtPointMallOrder',
	  method: 'get',
	  params,
		config
	})
}

// 領取優惠券
export function addReceiveCoupon(params, config) {
	return request({
	  url: '/Mobile/MyCenter/AddReceiveCoupon',
	  method: 'get',
	  params,
		config
	})
}
